package com.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;

/**
 * @Classname MySelfRule
 * @Description TODO
 * @Date 2024/2/26 1:16
 * @Created by pc
 */
public class MySelfRule {
    @Bean
    public IRule myRule() {
        return new RandomRule();    //负载均衡机制改为随机
    }
}
